import React, { Component } from 'react'
import { connect } from 'react-redux'

class App extends Component {

  constructor (props) {
    super(props)
  }

  componentDidMount () {

  }

  render () {
    return (
      <div>
        <h1>
          欢迎使用redux
        </h1>
      </div>
    )
  }
}

const mapStateToProps = (state) =>{
  return {
    userInfo : state.get('userInfo')
  }
}

export default connect(mapStateToProps)(App)
